<div class="head frame clearfix">
	<h1 class="logo f_l">
		<%= link_to image_tag('logo.gif', :alt => 'logo'), {:controller => :home, :action => :index}%>
	</h1>
	<div class="search f_r">
		<div class="schbox">
			<form action="search.php" method="get" id="search_form">
				<input maxlength="20" type="text" class="inpt" name="k" value="<%= t(:i_input_keywords)%>" onblur="inputTxt(this, 'set');" onfocus="inputTxt(this, 'clean');" />
				<input class="btn" value="" type="submit" />
			</form>
		</div>
		<a href="search_ad.php"><%= t(:i_search_ad)%></a>
	</div>
	<div class="topnav">
	<% if session[:user]%>
		<%= t(:i_hi)%>,<a href="modules.php"><%#= current_user.login%></a>
		<%= t(:i_welcome)%>
		<%#= @sys_name.value%>
		<%= link_to t(:i_logout), {:controller => :user, :action => :logout}%> |
		<%= link_to t(:i_cart), {:controller => :user_cart, :action => :index}, :class => "shop_cart"%> |
		<a href="modules.php"><%= t(:i_user_center)%></a> |
		<a href="{echo:article_list_url(2);/}"><%= t(:i_help)%></a>
	<% else%>
		<%= t(:i_hi)%>,<%= t(:i_login)%>
		<%= link_to t(:i_login), {:controller => :user, :action => :login}%> |
		<%= link_to t(:i_free_register), {:controller => :user, :action => :signup}%> |
		<%= link_to t(:i_cart), {:controller => :user_cart, :action => :index}, :class => "shop_cart"%> |
		<a href="modules.php"><%= t(:i_user_center)%></a> |
		<a href="{$item['link']}"><%= t(:i_help)%></a>
	<% end%>
	</div>
</div>
